<div id="add-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="addModalLabel">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <form id="add-form-data" action="addJson.json" method="post" onsubmit="return false;" class="form-horizontal">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	        <h4 class="modal-title" id="addModalLabel">员工新增</h4>
	      </div>
	      <!-- /.modal-header -->
	      <div class="modal-body">
	        <div class="row">
	           <div class="col-md-12">
	           
	              <div class="form-group">
	                 <label class="col-md-2 control-label">所在部门</label>
	                 <div class="col-md-4">
	                     <select name="parentCode" required data-msg-required="请选择部门">
	                        <option value="">无</option>
	                        <%for(department in departmentList!){%>
	                        <option value="${department.code}">${department.name}</option>
	                        <%}%>
	                     </select>
	                 </div>
	                 
	                 <label class="col-md-2 control-label">头像</label>
	                 <div class="col-md-4">
	                      <input type="text" name="avatar" class="form-control" placeholder="填写头像地址">
	                 </div>
	              </div>
	              
	              <div class="form-group">
	                 <label class="col-md-2 control-label">姓名</label>
	                 <div class="col-md-4">
	                    <input type="text" name="name" class="form-control" placeholder="请输入姓名" required>
	                 </div>
	                 
	                 <label class="col-md-2 control-label">性别</label>
	                 <div class="col-md-4">
	                    <label><input type="radio" name="sex" value="0"> 女</label>
	                    <label><input type="radio" name="sex" value="1" checked> 男</label>
	                 </div>
	              </div>
	              
	              <div class="form-group">
	                 <label class="col-md-2 control-label">生日</label>
	                 <div class="col-md-4">
	                    <input type="text" name="birthday" class="form-control" placeholder="请输入生日">
	                 </div>
	                 
	                 <label class="col-md-2 control-label">婚姻状况</label>
	                 <div class="col-md-4">
	                    <label><input type="radio" name="marital" value="0" checked> 未婚</label>
	                    <label><input type="radio" name="marital" value="1"> 已婚</label>
	                 </div>
	              </div>
	              
	              <div class="form-group">
	                 <label class="col-md-2 control-label">民族</label>
	                 <div class="col-md-4">
	                    <input type="text" name="ethnicity" class="form-control" placeholder="请填写民族">
	                 </div>
	                 
	                 <label class="col-md-2 control-label">学历</label>
	                 <div class="col-md-4">
	                    <input type="text" name="education" class="form-control" placeholder="请填写学历">
	                 </div>
	              </div>
	              
	              <div class="form-group">
	                 <label class="col-md-2 control-label">职位</label>
	                 <div class="col-md-4">
	                    <input type="text" name="post" class="form-control" placeholder="请填写职位">
	                 </div>
	                 
	                 <label class="col-md-2 control-label">部门电话</label>
	                 <div class="col-md-4">
	                    <input type="text" name="departmentPhone" class="form-control" placeholder="请填写部门电话">
	                 </div>
	              </div>
              
                  <div class="form-group">
	                 <label class="col-md-2 control-label">住宅电话</label>
	                 <div class="col-md-4">
	                    <input type="text" name="phone" class="form-control" placeholder="请填写住宅电话">
	                 </div>
	                 
	                 <label class="col-md-2 control-label">移动电话 </label>
	                 <div class="col-md-4">
	                    <input type="text" name="mobile" class="form-control" placeholder="请填写移动电话">
	                 </div>
	              </div>
	              
	              <div class="form-group">
	                 <label class="col-md-2 control-label">地址</label>
	                 <div class="col-md-10">
	                    <textarea name="address" rows="3" class="form-control"></textarea>
	                 </div>
	              </div>
	              
	              <input type="hidden" name="addtime" value="${date(), 'yyyy-MM-dd HH:mm:ss'}">

	           </div>
	           <!-- /.col-md-12 -->
	        </div>
	        <!-- /.container-fluid -->
	      </div>
	      <!-- /.modal-body -->
	      <div class="modal-footer">
	        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	        <button type="submit" class="btn btn-primary submit-button">提交</button>
	      </div>
      </form>
    </div>
    <!-- /.modal-content -->
  </div>
</div>